/*  1:   */ package tt.dz.common;
/*  2:   */ 
/*  3:   */ import java.io.PrintWriter;
/*  4:   */ import java.io.StringWriter;
/*  5:   */ import org.slf4j.Logger;
/*  6:   */ import org.slf4j.LoggerFactory;
/*  7:   */ 
/*  8:   */ public class LogUtil
/*  9:   */ {
/* 10:11 */   private static final Logger devlog = LoggerFactory.getLogger("Debug");
/* 11:13 */   private static final Logger info = LoggerFactory.getLogger("Info");
/* 12:15 */   private static final Logger error = LoggerFactory.getLogger("Error");
/* 13:   */   
/* 14:   */   public static void debug(String msg)
/* 15:   */   {
/* 16:19 */     devlog.debug("this is debug level log" + msg);
/* 17:   */   }
/* 18:   */   
/* 19:   */   public static void info(String msg)
/* 20:   */   {
/* 21:23 */     info.info("this is Info level log" + msg);
/* 22:   */   }
/* 23:   */   
/* 24:   */   public static void info(String msg, Exception e)
/* 25:   */   {
/* 26:27 */     StringWriter sw = new StringWriter();
/* 27:28 */     PrintWriter s = new PrintWriter(sw);
/* 28:29 */     e.printStackTrace(s);
/* 29:30 */     info.info(msg);
/* 30:31 */     info.info(sw.toString());
/* 31:   */   }
/* 32:   */   
/* 33:   */   public static void error(String msg, Exception e)
/* 34:   */   {
/* 35:35 */     StringWriter sw = new StringWriter();
/* 36:36 */     PrintWriter s = new PrintWriter(sw);
/* 37:37 */     e.printStackTrace(s);
/* 38:38 */     error.error(msg);
/* 39:39 */     error.error(sw.toString());
/* 40:   */   }
/* 41:   */   
/* 42:   */   public static void error(String msg)
/* 43:   */   {
/* 44:43 */     error.error(msg);
/* 45:   */   }
/* 46:   */ }


/* Location:           F:\work\pengyu\mainServer\WEB-INF\classes\
 * Qualified Name:     tt.dz.common.LogUtil
 * JD-Core Version:    0.7.0.1
 */